import { Component, OnInit } from '@angular/core';

import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-routerget',
  templateUrl: './routerget.component.html',
  styleUrls: ['./routerget.component.css']
})
export class RoutergetComponent implements OnInit {

  constructor(public myactiveroute:ActivatedRoute) { }

  ngOnInit(): void {
    this.myactiveroute.queryParams.subscribe((res) => {
      console.log(res,'get路由传参---queryParams')
    })
  }

}
